package cn.px.crm.customerbusiness.service;

import cn.px.crm.customerbusiness.domain.CrmCustomerBusiness;

import java.util.List;

/**
 * 客户业务管理Service接口
 *
 * @author ruoyi
 * @date 2022-07-16
 */
public interface ICrmCustomerBusinessService
{
    /**
     * 查询客户业务管理
     *
     * @param id 客户业务管理主键
     * @return 客户业务管理
     */
    public CrmCustomerBusiness selectCrmCustomerBusinessById(Long id);

    /**
     * 查询客户业务管理列表
     *
     * @param crmCustomerBusiness 客户业务管理
     * @return 客户业务管理集合
     */
    public List<CrmCustomerBusiness> selectCrmCustomerBusinessList(CrmCustomerBusiness crmCustomerBusiness);
    public int selectCrmCustomerBusinessListThisMonth(CrmCustomerBusiness crmCustomerBusiness);

    public List<CrmCustomerBusiness> selectCrmCustomerBusinessListWithOutGroup(CrmCustomerBusiness crmCustomerBusiness);

    public List<CrmCustomerBusiness> selectCrmCustomerBusinessListGroupByCid(CrmCustomerBusiness crmCustomerBusiness);
    public List<CrmCustomerBusiness> selectCrmCustomerBusinessListGroupBy(CrmCustomerBusiness crmCustomerBusiness);

    public List<CrmCustomerBusiness> selectCrmCustomerExportList(CrmCustomerBusiness crmCustomerBusiness);

    public List<CrmCustomerBusiness> selectCustomerBusinessLists(CrmCustomerBusiness crmCustomerBusiness);

    public List<CrmCustomerBusiness> selectCrmCustomerApiList(CrmCustomerBusiness crmCustomerBusiness);
    public List<CrmCustomerBusiness> selectCrmCustomerBusinessListThisYear(CrmCustomerBusiness crmCustomerBusiness);
    public List<CrmCustomerBusiness> selectCustomerBusinessListGroupByMonth(CrmCustomerBusiness crmCustomerBusiness);
    public List<CrmCustomerBusiness> selectCrmCustomerBusinessCountGroupByDeptId(CrmCustomerBusiness crmCustomerBusiness);
    public List<CrmCustomerBusiness> selectCrmCustomerBusinessCountGroupByMonth(CrmCustomerBusiness crmCustomerBusiness);

    /**
     * 新增客户业务管理
     *
     * @param crmCustomerBusiness 客户业务管理
     * @return 结果
     */
    public int insertCrmCustomerBusiness(CrmCustomerBusiness crmCustomerBusiness);
    public int selectCrmCustomerBusinessCountIndex(CrmCustomerBusiness crmCustomerBusiness);

    /**
     * 修改客户业务管理
     *
     * @param crmCustomerBusiness 客户业务管理
     * @return 结果
     */
    public int updateCrmCustomerBusiness(CrmCustomerBusiness crmCustomerBusiness);

    /**
     * 批量删除客户业务管理
     *
     * @param ids 需要删除的客户业务管理主键集合
     * @return 结果
     */
    public int deleteCrmCustomerBusinessByIds(Long[] ids);

    /**
     * 删除客户业务管理信息
     *
     * @param id 客户业务管理主键
     * @return 结果
     */
    public int deleteCrmCustomerBusinessById(Long id);

    public String importData(List<CrmCustomerBusiness> list,String addTime,String dateType);

}
